package com.brianxd.mvc.service.iml;

import com.brianxd.mvc.bean.User;
import com.brianxd.mvc.dao.UserMapper;
import com.brianxd.mvc.service.intf.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by xd on 2017/5/15.
 */
@Service("userService")
public class UserService implements IUserService {

    @Autowired
    private UserMapper userDao;

    public User getUserById(int userId) {
        return this.userDao.selectByPrimaryKey(userId);
    }

}